package kiwi.core.model.security;

import kiwi.core.model.user.KiWiUser;
import java.util.Date;

/**
 * AccessToken - the token class is an in-memory/non-persistent entity
 * used to identify a KiWiUser with an access token that is valid
 * for a session.
 * User: Stephanie Stroka
 * Date: 06.05.2011
 * Time: 11:37:16
 */
public class AccessToken {

    private String accessToken;

    private KiWiUser kiwiUser;

    private Date expirationDate;


    public AccessToken(String accessToken, KiWiUser kiwiUser, Date expirationDate) {
        this.accessToken = accessToken;
        this.kiwiUser = kiwiUser;
        this.expirationDate = expirationDate;
    }
    
    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public KiWiUser getKiwiUser() {
        return kiwiUser;
    }

    public void setKiwiUser(KiWiUser kiwiUser) {
        this.kiwiUser = kiwiUser;
    }

    public Date getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(Date expirationDate) {
        this.expirationDate = expirationDate;
    }
}
